package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author WuZH
 * @since 2023-11-18
 */
@Data
@TableName ( "address_info" )
@ApiModel ( value = "AddressEntity对象", description = "收货地址表" )
public class AddressEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "ID" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "学生Id" )
    @TableField ( "stuId" )
    private String stuId;

    @ApiModelProperty ( "接受快递者姓名" )
    @TableField ( "receiver" )
    private String receiver;

    @ApiModelProperty ( "自提点名称" )
    @TableField ( "addrName" )
    private String addrName;

    @ApiModelProperty ( "地址" )
    @TableField ( "addr" )
    private String addr;

    @ApiModelProperty ( "手机" )
    @TableField ( "mobile" )
    private String mobile;

    @ApiModelProperty ( "省份ID" )
    @TableField ( "provinceId" )
    private String provinceId;

    @ApiModelProperty ( "省份" )
    @TableField ( "province" )
    private String province;

    @ApiModelProperty ( "城市ID" )
    @TableField ( "cityId" )
    private String cityId;

    @ApiModelProperty ( "城市" )
    @TableField ( "city" )
    private String city;

    @ApiModelProperty ( "区/县ID" )
    @TableField ( "areaId" )
    private String areaId;

    @ApiModelProperty ( "区/县" )
    @TableField ( "area" )
    private String area;

    @ApiModelProperty ( "是否默认地址" )
    @TableField ( "isDefault" )
    private Integer isDefault;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;


}
